package com.xyz.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

public class CaptchaTokenUserNameToken extends UsernamePasswordToken {

    private String capatcha;
    private String token;

    public CaptchaTokenUserNameToken(String capatcha, String username, String password, String token){
        super(username,password);
        this.capatcha = capatcha;
        this.token = token;
    }

    public CaptchaTokenUserNameToken(String capatcha, String username, String password, String token, String host, boolean rememberMe){
        super(username, password, rememberMe, host);
        this.capatcha = capatcha;
        this.token = token;
    }

    public String getCapatcha() {
        return capatcha;
    }

    public void setCapatcha(String capatcha) {
        this.capatcha = capatcha;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "CaptchaTokenUserNameToken{" +
                "token='" + token + '\'' +
                "capatcha='" + capatcha + '\'' +
                ",super=[" + super.toString() + "]" +
                '}';
    }

}
